package cn.gson.school.mappers.jiaoxue;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import cn.gson.school.entity.jiaoxue.GradeEntity;
import cn.gson.school.entity.jiaoxue.TitleEntity;
import cn.gson.school.entity.jiaoxue.ZuoYeClassEntity;
import cn.gson.school.entity.jiaoxue.ZuoYeEntity;

@Mapper
public interface ZuoYeMappers {

	List<ZuoYeEntity> zuoyeList(ZuoYeEntity zuoYeEntity);
	
	Integer chaxunDaiMa(Long id);
	
	Integer chaxunXuanZe(Long id);
	
	Integer chaxunPanDuan(Long id);
	
	Integer chaxunMaxId(String type);
	
	//后台查询选择题的分数
	Integer htChaXunFenShu1(Long studentId,Long zuoYeId);
	//后台查询判断题的分数
	Integer htChaXunFenShu2(Long studentId,Long zuoYeId);
	
	List<TitleEntity> chaxunTiMu(String type,String chapterId);
	
	List<TitleEntity> cx1(Long id);//查询选择题
	List<TitleEntity> cx2(Long id);//查询判断题
	List<TitleEntity> cx3(Long id);//查询代码题
	
	List<Map<String, Object>> yuejuan();
	
	Integer chaXunSelect(String type,String id);
	
	//前台未提交作业查询 
   	List<Map<String, Object>> findByStudent(Long studentId);
  //前台未提交考试查询 
   	List<Map<String, Object>> findByStudent2(Long studentId);
  //前台已提交练习查询 
   	List<Map<String, Object>> findByStudent3(Long studentId);
  //前台已提交试卷查询 
   	List<Map<String, Object>> findByStudent4(Long studentId);
   	
   	//学习评估中的作业、考试的查询
   	List<Map<String, Object>> findZuoye(Long studentId);
   	
}
